﻿using System;
using System.Collections.Generic;
using System.Runtime.Serialization;
using T.FAS.Runtime.Base.Entity;

namespace T.FAS.Runtime.Metadata.Entity
{
    /// <summary>
    /// Schema
    /// </summary>
    [Serializable]
    public class Term
    {
        /// <summary>
        /// 词条唯一标识，后端服务要保证每次生成出来的ID唯一对应Code
        /// </summary>
        [DataMember]
        public string ID { get; set; }
        /// <summary>
        /// 目前给Page组件用
        /// </summary>
        [DataMember]
        public string SourceID { get; set; }
        /// <summary>
        /// 词条标识（引用路径表达式）
        /// </summary>
        [DataMember]
        public string Code { get; set; }
        /// <summary>
        /// 词条路径（引用路径表达式）
        /// </summary>
        [DataMember]
        public string TermPath { get; set; }
        /// <summary>
        /// 原始文本
        /// </summary>
        [DataMember]
        public string OriginalText { get; set; }
        /// <summary>
        /// 词条类型
        /// </summary>
        [DataMember]
        public TermType TermType { get; set; }
    }
}
